package org.example.config;

import lombok.Data;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.eclipse.paho.client.mqttv3.*;
import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence;
import org.example.util.constantUtil.ConstantUtil;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "mqtt")
public class MqttConfig {
    private final int QOS_0 = 0;

    private final int QOS_1 = 1;

    private final int QOS_2 = 2;

    private String username;

    private String password;

    private int keepAlive;

    private String host;

    private String topic;



}
